package com.jthinker.blog.service.impl;

import com.jthinker.blog.bean.entity.Button;
import com.jthinker.blog.dao.BaseDao;
import com.jthinker.blog.dao.ButtonDao;
import com.jthinker.blog.service.ButtonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * User: Gang Chen
 * Date: 2015/6/28 13:26
 */
@Service
public class ButtonServiceImpl extends BaseServiceImpl<Button, Long> implements ButtonService
{
    private ButtonDao buttonDao;

    @Override
    @Autowired
    @Qualifier("buttonDao")
    protected void setBaseDao(BaseDao baseDao)
    {
        this.baseDao = baseDao;
        this.buttonDao = (ButtonDao) baseDao;
    }
}
